import request from '@/utils/request'

// 请求列表 错误码 401001
export function getparkList(params) {
  return request({
    url: `/parkManage/park/getList`,
    method: "get",
    params,
  });
}

// 新增 错误码401002
export function add(data) {
  return request({
    url: `/parkManage/park/add`,
    method: "post",
    data,
  });
}

// 修改 错误码401003
export function edit(data) {
  return request({
    url: `/parkManage/park/edit`,
    method: "put",
    data,
  });
}


// 详情 错误码401004
export function getDetail(id) {
  return request({
    url: `/parkManage/park/${id}`,
    method: "get",
  });
}

// 删除 错误码401005
export function deletePark(id) {
  return request({
    url: `/parkManage/park/delete/${id}`,
    method: "delete",
  });
}
